import request from "../request";

// 获取首页轮播
export const swiper = (data)=> request({url:"/ad/ad",data,method:'post'});

// 根据分类名称获取所有下级
export const getData = (data) => request({url:"/dataset/getDatasetSubset",data,method:'post'})

// 提交平台咨询
export const feedbackSubmit = (data) => request({url:"/feedback/save",data,method:'post'}) 

// 配置信息
export const getUsual = () => request({url:"/usual/getUsual"})

// 用户获取详情
export const getCataOne = (data) => request({url:"/serve/content/getWebOne",data,method:'post'});

// 获取服务列表中的详情页
export const getCataDetail = (data) => request({url:`/serve/content/getWebOneById/${data.id}`})

// 场地预约提交
export const cataSubmit = (data) => request({url:"/serve/changdi/save",data,method:'post'});

// 用户获取单页内容
export const getContentOne = (data) => request({url:"/content/getOne",data,method:'post'});

// 获取未读消息数量
export const getNotReadNum = (data) => request({url:"/sess/getNotReadNum"})